<?php
/**
 * Created by PhpStorm.
 * User: bxm
 * Date: 2022/6/20
 * Time: 22:51
 */

namespace app\api\controller\worker;


use app\api\controller\Base;
use app\common\model\worker\CustomerChannelModel;

class CustomerChannelController extends Base
{
    private $model;
    /**
     * 构造方法
     * @access public
     * @throws \Exception
     */
    public function __construct()
    {

        parent::__construct();
        $this->checkLogin();
        $this->model = new CustomerChannelModel();

    }
    public function index(){
        $list = $this->model->getList(['status'=>1],$field="*", ['id' => 'asc']);
        $this->result($list,'操作成功',1);
    }
}